package com.cw.java8.optional.demo;

/**
 * 测试类
 */
public class Test {

    public static void main(String[] args) {
        UserService userService = new UserService();

        String result = userService.findUserName(1);
        System.out.println(result);

        String resultOptional= userService.findUserNameByOptional(1);
        System.out.println(resultOptional);
    }
}
